/*jshint esversion: 9 */
export function doubleClick(callBack){  //双击事件
	let time = 0;
	return function(){
		let now = new Date().getTime();
		if((now - time) < 300){  //表示是双击事件
			callBack.call(this,...arguments);
		}
		time = now;
	}
}